package cn.edu.sdjzu.xg.eagle.entity;

import lombok.*;

/**
 * @author tg.si@188.com
 * @project xg22
 * @date 2024/3/26
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class School implements Comparable<School> {
    private Long id;//对应着数据库表中的非业务主键 object id
    private String no;
    private String description;
    private String remarks;
//    {
//        this.id = IdUtil.getId();
//    }

    public School(String description, String no, String remarks) {
        super();
        this.description = description;
        this.no = no;
        this.remarks = remarks;
    }

    @Override
    public int compareTo(School o) {
        return this.no.compareTo(o.no);
    }
}
